package com.woniu.rabbit.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单详情表
 * @TableName order_detail
 */
@TableName(value ="order_detail")
public class OrderDetail implements Serializable {
    /**
     * 订单详情编号
     */
    @TableId
    private String id;

    /**
     * 订单编号
     */
    private String orderId;

    /**
     * 订单类型
     */
    private String orderTypeId;

    /**
     * 订单业务类型
     */
    private String orderBusinessTypeId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 商品id
     */
    private String productId;

    /**
     * 商品名字
     */
    private String productName;

    /**
     * 商品价格
     */
    private BigDecimal productPrice;

    /**
     * 商品类型
     */
    private String productType;

    /**
     * 购买数量
     */
    private Integer buyNum;

    /**
     * 发票信息
     */
    private String invoiceId;

    /**
     * 生效时间
     */
    private Date createTime;

    /**
     * 失效时间
     */
    private Date shixiaoTime;

    /**
     * 生效方式
     */
    private String shengxiaoWay;

    /**
     * 状态
     */
    private Integer state;

    /**
     * 物流公司id
     */
    private String logisticsCompanyId;

    /**
     * 物流公司名称
     */
    private String logisticsName;

    /**
     * 物流单号
     */
    private String logisticsId;

    /**
     * 接入方式
     */
    private String insertWay;

    /**
     * 宽带速率
     */
    private String netSpeed;

    /**
     * 地址ID
     */
    private String addressId;

    /**
     * 地址
     */
    private String addressName;

    /**
     * 客户编号
     */
    private String customId;

    /**
     * 业务编码
     */
    private String businessId;

    /**
     * 业务名称
     */
    private String businessName;

    /**
     * 业务办理时间
     */
    private Date businessTime;

    /**
     * 业务状态
     */
    private Integer businessStatus;

    /**
     * 办理人员工号
     */
    private String businessEmployeeId;

    /**
     * 失败原因
     */
    private String reason;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 订单详情编号
     */
    public String getId() {
        return id;
    }

    /**
     * 订单详情编号
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 订单编号
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * 订单编号
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    /**
     * 订单类型
     */
    public String getOrderTypeId() {
        return orderTypeId;
    }

    /**
     * 订单类型
     */
    public void setOrderTypeId(String orderTypeId) {
        this.orderTypeId = orderTypeId;
    }

    /**
     * 订单业务类型
     */
    public String getOrderBusinessTypeId() {
        return orderBusinessTypeId;
    }

    /**
     * 订单业务类型
     */
    public void setOrderBusinessTypeId(String orderBusinessTypeId) {
        this.orderBusinessTypeId = orderBusinessTypeId;
    }

    /**
     * 用户id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 用户id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 商品id
     */
    public String getProductId() {
        return productId;
    }

    /**
     * 商品id
     */
    public void setProductId(String productId) {
        this.productId = productId;
    }

    /**
     * 商品名字
     */
    public String getProductName() {
        return productName;
    }

    /**
     * 商品名字
     */
    public void setProductName(String productName) {
        this.productName = productName;
    }

    /**
     * 商品价格
     */
    public BigDecimal getProductPrice() {
        return productPrice;
    }

    /**
     * 商品价格
     */
    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    /**
     * 商品类型
     */
    public String getProductType() {
        return productType;
    }

    /**
     * 商品类型
     */
    public void setProductType(String productType) {
        this.productType = productType;
    }

    /**
     * 购买数量
     */
    public Integer getBuyNum() {
        return buyNum;
    }

    /**
     * 购买数量
     */
    public void setBuyNum(Integer buyNum) {
        this.buyNum = buyNum;
    }

    /**
     * 发票信息
     */
    public String getInvoiceId() {
        return invoiceId;
    }

    /**
     * 发票信息
     */
    public void setInvoiceId(String invoiceId) {
        this.invoiceId = invoiceId;
    }

    /**
     * 生效时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 生效时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 失效时间
     */
    public Date getShixiaoTime() {
        return shixiaoTime;
    }

    /**
     * 失效时间
     */
    public void setShixiaoTime(Date shixiaoTime) {
        this.shixiaoTime = shixiaoTime;
    }

    /**
     * 生效方式
     */
    public String getShengxiaoWay() {
        return shengxiaoWay;
    }

    /**
     * 生效方式
     */
    public void setShengxiaoWay(String shengxiaoWay) {
        this.shengxiaoWay = shengxiaoWay;
    }

    /**
     * 状态
     */
    public Integer getState() {
        return state;
    }

    /**
     * 状态
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 物流公司id
     */
    public String getLogisticsCompanyId() {
        return logisticsCompanyId;
    }

    /**
     * 物流公司id
     */
    public void setLogisticsCompanyId(String logisticsCompanyId) {
        this.logisticsCompanyId = logisticsCompanyId;
    }

    /**
     * 物流公司名称
     */
    public String getLogisticsName() {
        return logisticsName;
    }

    /**
     * 物流公司名称
     */
    public void setLogisticsName(String logisticsName) {
        this.logisticsName = logisticsName;
    }

    /**
     * 物流单号
     */
    public String getLogisticsId() {
        return logisticsId;
    }

    /**
     * 物流单号
     */
    public void setLogisticsId(String logisticsId) {
        this.logisticsId = logisticsId;
    }

    /**
     * 接入方式
     */
    public String getInsertWay() {
        return insertWay;
    }

    /**
     * 接入方式
     */
    public void setInsertWay(String insertWay) {
        this.insertWay = insertWay;
    }

    /**
     * 宽带速率
     */
    public String getNetSpeed() {
        return netSpeed;
    }

    /**
     * 宽带速率
     */
    public void setNetSpeed(String netSpeed) {
        this.netSpeed = netSpeed;
    }

    /**
     * 地址ID
     */
    public String getAddressId() {
        return addressId;
    }

    /**
     * 地址ID
     */
    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    /**
     * 地址
     */
    public String getAddressName() {
        return addressName;
    }

    /**
     * 地址
     */
    public void setAddressName(String addressName) {
        this.addressName = addressName;
    }

    /**
     * 客户编号
     */
    public String getCustomId() {
        return customId;
    }

    /**
     * 客户编号
     */
    public void setCustomId(String customId) {
        this.customId = customId;
    }

    /**
     * 业务编码
     */
    public String getBusinessId() {
        return businessId;
    }

    /**
     * 业务编码
     */
    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    /**
     * 业务名称
     */
    public String getBusinessName() {
        return businessName;
    }

    /**
     * 业务名称
     */
    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    /**
     * 业务办理时间
     */
    public Date getBusinessTime() {
        return businessTime;
    }

    /**
     * 业务办理时间
     */
    public void setBusinessTime(Date businessTime) {
        this.businessTime = businessTime;
    }

    /**
     * 业务状态
     */
    public Integer getBusinessStatus() {
        return businessStatus;
    }

    /**
     * 业务状态
     */
    public void setBusinessStatus(Integer businessStatus) {
        this.businessStatus = businessStatus;
    }

    /**
     * 办理人员工号
     */
    public String getBusinessEmployeeId() {
        return businessEmployeeId;
    }

    /**
     * 办理人员工号
     */
    public void setBusinessEmployeeId(String businessEmployeeId) {
        this.businessEmployeeId = businessEmployeeId;
    }

    /**
     * 失败原因
     */
    public String getReason() {
        return reason;
    }

    /**
     * 失败原因
     */
    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderDetail other = (OrderDetail) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getOrderTypeId() == null ? other.getOrderTypeId() == null : this.getOrderTypeId().equals(other.getOrderTypeId()))
            && (this.getOrderBusinessTypeId() == null ? other.getOrderBusinessTypeId() == null : this.getOrderBusinessTypeId().equals(other.getOrderBusinessTypeId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
            && (this.getProductName() == null ? other.getProductName() == null : this.getProductName().equals(other.getProductName()))
            && (this.getProductPrice() == null ? other.getProductPrice() == null : this.getProductPrice().equals(other.getProductPrice()))
            && (this.getProductType() == null ? other.getProductType() == null : this.getProductType().equals(other.getProductType()))
            && (this.getBuyNum() == null ? other.getBuyNum() == null : this.getBuyNum().equals(other.getBuyNum()))
            && (this.getInvoiceId() == null ? other.getInvoiceId() == null : this.getInvoiceId().equals(other.getInvoiceId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getShixiaoTime() == null ? other.getShixiaoTime() == null : this.getShixiaoTime().equals(other.getShixiaoTime()))
            && (this.getShengxiaoWay() == null ? other.getShengxiaoWay() == null : this.getShengxiaoWay().equals(other.getShengxiaoWay()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getLogisticsCompanyId() == null ? other.getLogisticsCompanyId() == null : this.getLogisticsCompanyId().equals(other.getLogisticsCompanyId()))
            && (this.getLogisticsName() == null ? other.getLogisticsName() == null : this.getLogisticsName().equals(other.getLogisticsName()))
            && (this.getLogisticsId() == null ? other.getLogisticsId() == null : this.getLogisticsId().equals(other.getLogisticsId()))
            && (this.getInsertWay() == null ? other.getInsertWay() == null : this.getInsertWay().equals(other.getInsertWay()))
            && (this.getNetSpeed() == null ? other.getNetSpeed() == null : this.getNetSpeed().equals(other.getNetSpeed()))
            && (this.getAddressId() == null ? other.getAddressId() == null : this.getAddressId().equals(other.getAddressId()))
            && (this.getAddressName() == null ? other.getAddressName() == null : this.getAddressName().equals(other.getAddressName()))
            && (this.getCustomId() == null ? other.getCustomId() == null : this.getCustomId().equals(other.getCustomId()))
            && (this.getBusinessId() == null ? other.getBusinessId() == null : this.getBusinessId().equals(other.getBusinessId()))
            && (this.getBusinessName() == null ? other.getBusinessName() == null : this.getBusinessName().equals(other.getBusinessName()))
            && (this.getBusinessTime() == null ? other.getBusinessTime() == null : this.getBusinessTime().equals(other.getBusinessTime()))
            && (this.getBusinessStatus() == null ? other.getBusinessStatus() == null : this.getBusinessStatus().equals(other.getBusinessStatus()))
            && (this.getBusinessEmployeeId() == null ? other.getBusinessEmployeeId() == null : this.getBusinessEmployeeId().equals(other.getBusinessEmployeeId()))
            && (this.getReason() == null ? other.getReason() == null : this.getReason().equals(other.getReason()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getOrderTypeId() == null) ? 0 : getOrderTypeId().hashCode());
        result = prime * result + ((getOrderBusinessTypeId() == null) ? 0 : getOrderBusinessTypeId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
        result = prime * result + ((getProductName() == null) ? 0 : getProductName().hashCode());
        result = prime * result + ((getProductPrice() == null) ? 0 : getProductPrice().hashCode());
        result = prime * result + ((getProductType() == null) ? 0 : getProductType().hashCode());
        result = prime * result + ((getBuyNum() == null) ? 0 : getBuyNum().hashCode());
        result = prime * result + ((getInvoiceId() == null) ? 0 : getInvoiceId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getShixiaoTime() == null) ? 0 : getShixiaoTime().hashCode());
        result = prime * result + ((getShengxiaoWay() == null) ? 0 : getShengxiaoWay().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getLogisticsCompanyId() == null) ? 0 : getLogisticsCompanyId().hashCode());
        result = prime * result + ((getLogisticsName() == null) ? 0 : getLogisticsName().hashCode());
        result = prime * result + ((getLogisticsId() == null) ? 0 : getLogisticsId().hashCode());
        result = prime * result + ((getInsertWay() == null) ? 0 : getInsertWay().hashCode());
        result = prime * result + ((getNetSpeed() == null) ? 0 : getNetSpeed().hashCode());
        result = prime * result + ((getAddressId() == null) ? 0 : getAddressId().hashCode());
        result = prime * result + ((getAddressName() == null) ? 0 : getAddressName().hashCode());
        result = prime * result + ((getCustomId() == null) ? 0 : getCustomId().hashCode());
        result = prime * result + ((getBusinessId() == null) ? 0 : getBusinessId().hashCode());
        result = prime * result + ((getBusinessName() == null) ? 0 : getBusinessName().hashCode());
        result = prime * result + ((getBusinessTime() == null) ? 0 : getBusinessTime().hashCode());
        result = prime * result + ((getBusinessStatus() == null) ? 0 : getBusinessStatus().hashCode());
        result = prime * result + ((getBusinessEmployeeId() == null) ? 0 : getBusinessEmployeeId().hashCode());
        result = prime * result + ((getReason() == null) ? 0 : getReason().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderId=").append(orderId);
        sb.append(", orderTypeId=").append(orderTypeId);
        sb.append(", orderBusinessTypeId=").append(orderBusinessTypeId);
        sb.append(", userId=").append(userId);
        sb.append(", productId=").append(productId);
        sb.append(", productName=").append(productName);
        sb.append(", productPrice=").append(productPrice);
        sb.append(", productType=").append(productType);
        sb.append(", buyNum=").append(buyNum);
        sb.append(", invoiceId=").append(invoiceId);
        sb.append(", createTime=").append(createTime);
        sb.append(", shixiaoTime=").append(shixiaoTime);
        sb.append(", shengxiaoWay=").append(shengxiaoWay);
        sb.append(", state=").append(state);
        sb.append(", logisticsCompanyId=").append(logisticsCompanyId);
        sb.append(", logisticsName=").append(logisticsName);
        sb.append(", logisticsId=").append(logisticsId);
        sb.append(", insertWay=").append(insertWay);
        sb.append(", netSpeed=").append(netSpeed);
        sb.append(", addressId=").append(addressId);
        sb.append(", addressName=").append(addressName);
        sb.append(", customId=").append(customId);
        sb.append(", businessId=").append(businessId);
        sb.append(", businessName=").append(businessName);
        sb.append(", businessTime=").append(businessTime);
        sb.append(", businessStatus=").append(businessStatus);
        sb.append(", businessEmployeeId=").append(businessEmployeeId);
        sb.append(", reason=").append(reason);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}